package com.bit.java;

public class Test4 {

    public static int add(int x, int y) {
        return x + y;
    }

    public static double add(double a, double b) {
        return a + b;
    }

    public static void main(String[] args) {
        int a = 1;
        int b = 3;
        System.out.println(add(a, b));

        double x = 1.0;
        double y = 2.0;
        System.out.println(add(x, y));
    }
}
